package com.dbq.fast.common.net.mock.mockApi;

import com.dbq.fast.common.net.mock.MockInterface;
import com.dbq.fast.common.net.mock.MockRouter;

/**
 * Created by sunkai on 2017/10/30.
 */

public class MockOrder implements MockInterface {
    public static final String URL_GET_ORDER_LIST = MockRouter.BASE_URL + "/order/showOrder";

    @Override
    public byte[] getResponse(String url) {
//        String result = "{\n" +
//                "    \"code\": 200,\n" +
//                "    \"msg\": \"成功\",\n" +
//                "    \"data\": {\n" +
//                "        \"orderList\": [\n" +
//                "            {\n" +
//                "                \"orderId\": \"20171102201555256841\",\n" +
//                "                \"orderStatus\": 1,\n" +
//                "                \"serveName\": \"游戏VIP\",\n" +
//                "                \"setMealTime\": 1,\n" +
//                "                \"createTime\": \"2017-11-02 19:38:12.0\",\n" +
//                "                \"payMethod\": \"1\",\n" +
//                "                \"payPrice\": \"55¥\"\n" +
//                "            },\n" +
//                "            {\n" +
//                "                \"orderId\": \"20171102201856144165\",\n" +
//                "                \"orderStatus\": 1,\n" +
//                "                \"serveName\": \"游戏VIP\",\n" +
//                "                \"setMealTime\": 6,\n" +
//                "                \"createTime\": \"2017-11-02 19:49:22.0\",\n" +
//                "                \"payMethod\": \"1\",\n" +
//                "                \"payPrice\": \"66¥\"\n" +
//                "            },\n" +
//                "            {\n" +
//                "                \"orderId\": \"20171102201856144165\",\n" +
//                "                \"orderStatus\": 1,\n" +
//                "                \"serveName\": \"游戏VIP\",\n" +
//                "                \"setMealTime\": 6,\n" +
//                "                \"createTime\": \"2017-11-02 19:49:22.0\",\n" +
//                "                \"payMethod\": \"1\",\n" +
//                "                \"payPrice\": \"66¥\"\n" +
//                "            }\n" +
//                "        ]\n" +
//                "    }\n" +
//                "}\n";

        String result = " {\n" +
                "        \"code\":200,\n" +
                "        \"msg\":\"查询成功\",\n" +
                "        \"data\":{\"orderList\":[]}" +
                "    }\n";
        return result.getBytes();
    }
}
